package grape.attend.rest.user.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 用户打卡表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="用户下班打卡表单对象")
public class UserClockOffClockForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @NotEmpty(message="考勤组id不能为空")
    @ApiModelProperty(value = "考勤组id",required = true)
    private String groupId;

    @NotEmpty(message="班次id不能为空")
    @ApiModelProperty(value = "班次id",required = true)
    private String classeId;

    @NotNull(message="是否昨日班次不能为空")
    @ApiModelProperty(value = "是否昨日班次",required = true)
    private Boolean isClasseYestoday;

    @NotEmpty(message="打卡类型字典编码不能为空")
    @ApiModelProperty(value = "打卡类型字典编码")
    private String offClockTypeDictCode;

    @NotEmpty(message="打卡类型描述信息不能为空")
    @ApiModelProperty(value = "打卡类型描述信息")
    private String offClockTypeInfo;
}
